﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Template/Master1.master" CodeFile="MessageDetail.aspx.cs" Inherits="GUI_MessageDetail"  Title="Message Details"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style16
        {
            height: 43px;
        }
        .style19
        {
            width: 413px;
        }
        .style20
        {
            height: 43px;
            width: 413px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
    <td>
        <asp:HiddenField ID="HiddenMessID" runat="server" />
        <asp:DataList ID="DataList1" runat="server" Width="100%" DataKeyField="MessageID" 
            DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <ItemTemplate>
               <div style="font-family:Tahoma; font-size:12px; font-weight:normal; color:White"  >
  
                        <table cellpadding="2" cellspacing="0" border="1" width="100%" style="border-left:solid 1px gray;">
                         <tr>
                            <td style="width:40%; border-bottom:dotted 1px gray "><strong>Message ID: 
                                <br />
                                </strong> </td>
                            <td style="border-bottom:dotted 1px gray" class="style19"><asp:Label ID="Label4" runat="server" Text='<% #Eval("MessageID") %>'></asp:Label>&nbsp</td>                            
                                                                                    
                        </tr>
                        
                        <tr>
                            <td style="width:40%; border-bottom:dotted 1px gray "><strong>Sender ID: 
                                <br />
                                </strong> </td>
                            <td style="border-bottom:dotted 1px gray" class="style19"><asp:Label ID="lblten" runat="server" Text='<% #Eval("UserID") %>'></asp:Label>&nbsp</td>                            
                                                                                    
                        </tr>
                        <tr>
                            <td style="border-bottom:dotted 1px gray" class="style16"><strong>Content Message: 
                                <br />
                                </strong></td>
                            <td style="border-bottom:dotted 1px gray" class="style20"><asp:Label ID="Label1" runat="server" Text='<% #Eval("M_Detail")%>' ></asp:Label>&nbsp</td>
                        </tr>
                        <tr>
                            <td style="border-bottom:dotted 1px gray"><strong>Timestamp: 
                                <br />
                                </strong></td>
                            <td style="border-bottom:dotted 1px gray" class="style19"><asp:Label ID="Label2" runat="server" Text='<% #Eval("M_timestamp")%>'></asp:Label>&nbsp</td>
                        </tr>
                        
                        
 
                        
                        </table>
                    </td>
                </tr>               
                </table>            
                
                </div>                                                              
            </ItemTemplate>
            <AlternatingItemStyle BackColor="White" />
            <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:connection %>" 
            SelectCommand="SELECT * FROM [MessageToFriend] WHERE ([MessageID] = @MessageID)">
            <SelectParameters>
                <asp:ControlParameter ControlID="HiddenMessID" Name="MessageID" PropertyName="Value" />
                     
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        <br />
        <br />
        <asp:Button ID="btnBack" runat="server" PostBackUrl="~/GUI/ViewMessage.aspx" 
            Text="Back !<<<" />
        <br />
        <br />
        <br />
        <br />
        <br />
    </td>
</tr>

</table>
</asp:Content>